package cqcvc.edu.cn.entity;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

public class ServiceType {
    private Long id;
    private String typeTitle;
    private Date createDate;
    private Integer showOrder;
    private String ifShow;
    private Set<ServiceInfo> serviceInfos = new HashSet<ServiceInfo>(0);

    public ServiceType(Long id) {
        this.id = id;
    }

    public ServiceType() {
    }

    public ServiceType(String typeTitle, Date createdate, Integer showOrder,
                       String ifShow) {
        this.typeTitle = typeTitle;
        this.createDate = createdate;
        this.showOrder = showOrder;
        this.ifShow = ifShow;
    }

    public ServiceType(String typeTitle, Date createdate, Integer showOrder,
                       String ifShow, Set<ServiceInfo> serviceInfos) {

        this.typeTitle = typeTitle;
        this.createDate = createdate;
        this.showOrder = showOrder;
        this.ifShow = ifShow;
        this.serviceInfos = serviceInfos;
    }


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getTypeTitle() {
        return typeTitle;
    }

    public void setTypeTitle(String typeTitle) {
        this.typeTitle = typeTitle;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createdate) {
        this.createDate = createdate;
    }

    public Integer getShowOrder() {
        return showOrder;
    }

    public void setShowOrder(Integer showOrder) {
        this.showOrder = showOrder;
    }

    public String getIfShow() {
        return ifShow;
    }

    public void setIfShow(String ifShow) {
        this.ifShow = ifShow;
    }

    public Set<ServiceInfo> getServiceInfos() {
        return serviceInfos;
    }

    public void setServiceInfos(Set<ServiceInfo> serviceInfos) {
        this.serviceInfos = serviceInfos;
    }

    @Override
    public String toString() {
        return "ServiceType{" +
                "id=" + id +
                ", typeTitle='" + typeTitle + '\'' +
                ", createdate=" + createDate +
                ", showOrder=" + showOrder +
                ", ifShow='" + ifShow + '\'' +
                ", serviceInfos=" + serviceInfos +
                '}';
    }
}
